import 'package:flutter/material.dart';

class ClientWidget extends StatelessWidget {
  final String name;
  final bool selected;
  const ClientWidget(this.name,{super.key,this.selected = false});


  @override
  Widget build(BuildContext context) {
    final style = TextStyle(
        fontWeight: FontWeight.normal,
        fontSize: 28,
        color: selected?Colors.white:Colors.black
    );
    return Container(
      margin: const EdgeInsets.only(left: 20,right: 20,top: 30),
      padding: const EdgeInsets.all(18.0),
      alignment: Alignment.center,
      decoration: BoxDecoration(
        borderRadius: BorderRadius.circular(8.0),
        border: Border.all(width: 3,color: const Color(0xff034C98)),
        color: selected?const Color(0xff007aff):const Color(0xacffffff),
      ),
      child: Text(name,
      style: style,),
    );
  }
}
